A C++ Native Interface for Interpreted JVMs
نویسندگان
چکیده
This paper describes JuNI++, a C++ native interface for interpreted Java Virtual Machines. While JuNI++ was initially designed in order to integrate the RTSJ implementation jRate with Juice, a virtual machine for small footprint environments, its engineering and performance advantages outlived the initial goal. The main contribution of this paper is to show how a C++ based native interface can fully and efficiently support the Java mapping in interpreted environments without requiring any cooperation from the C++ compiler.
منابع مشابه
A Retargetable JIT Compiler for Java
Interpreted Java has poor performance. Therefore most Java Virtual Machines (JVM) contain a just-in-time compiler (JIT) that compiles the bytecode to the processor’s native instruction set. Most of these compilers are written in C and tightly integrated with the JVM. We describe a JIT compiler that is written in Java and retargetable to a different JVMs and CPUs.
متن کاملPerformance Evaluation: Java vs C++
Java is becoming much more widely used in academic settings because it offers a nice language for both introductory courses as well as more advanced courses. There is, however, always a kind of "apology" made for Java due to its slower execution. Java implementations are steadily improving with the use of JIT (Just In Time) compilation as well as strides being made in other areas affecting runt...
متن کاملSafe Java Native Interface
Type safety is a promising approach to enhancing software security. Programs written in type-safe programming languages such as Java are type-safe by construction. However, in practice, many complex applications are heterogeneous, i.e., they contain components written in different languages. The Java Native Interface (JNI) allows type-safe Java code to interact with unsafe C code. When a type-s...
متن کاملSeroepidemiology of non-primate hepacivirus (NPHV) in Japanese native horses
Non-primate hepacivirus (NPHV) is recently identified as a closely related homologue of hepatitis C virus. The previous studies showed a high prevalence of NPHV infection among Japanese domestic horses originated from abroad. The historical distribution of NPHV among horses in Japan, therefore, is still unknown. In this study, seroepidemiological study of NPHV was conducted using 335 sera from ...
متن کاملThread Synchronization Policies in DrJava
The Architecture of DrJava DrJava is a pure Java application involving two Java Virtual Machines (JVMs): (i) a master JVM that supports the user interface, the DrJava editor, and DrJava compilation; and (ii) a slave JVM that runs the interpreter and unit tests. DrJava currently uses the Java RMI library to support communication between the master and slave JVMs. In the future, a lighter weight ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003